<template>
  <rx-input @click="onClick" v-model="value" suffixicon="rx-rili" readonly/>
</template>

<script>
import pickDate from "../datepicker";
export default {
  name:'rx-input-date',
  props:['value'],
  methods:{
    onClick(event){
      pickDate({
        el:this.$el,
        event
      }).then((date)=>{
        // console.log(date)
       this.$emit('input',date)
      })
    }
  }
}
</script>
